import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import store from './store'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import Vue from 'vue'
import ViewUIPlus from 'view-ui-plus'
import 'view-ui-plus/dist/styles/viewuiplus.css'
import {VueSignaturePad} from "vue-signature-pad";
import VueParticles from 'vue-particles'



import * as echarts from "echarts";
// import  globalVariable from "@/api/global_variable"
// Vue.prototype.GLOBAL=globalVariable;
const app = createApp(App)
app.use(ViewUIPlus)
app.use(ElementPlus,  {size:'small', zIndex:3000})
app.use(router)
app.use(store)
app.use(VueSignaturePad)
app.use(VueParticles)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
